<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');


class Users_Module extends Module
{
    var $name = 'users';
    
    function __construct()
    {
        $this->active_module = $this->name;
        parent::__construct();
    }
    
    function admin_preload()
    {
        $this->CI->admin_navigation->child_link('users', 1, 'Nhà Cung cấp', admin_url('*/uproviders/index'));
        $this->CI->admin_navigation->child_link('users', 2, 'Nhà phân phối', admin_url('*/udistributors/index'));
        $this->CI->admin_navigation->child_link('users', 3, 'User admin',admin_url('*/admin/admin_manager'));
    }
    
    function front_preload()
    {
        $this->CI->smarty->addPluginsDir(APPPATH . 'modules/users/plugins/');
    }
}